package com.tm.chargecar.controller;

import com.tm.chargecar.entity.OrderDetailEntity;
import com.tm.chargecar.result.Result;
import com.tm.chargecar.service.OrderDetailService;
import com.tm.chargecar.vo.OrderDetailVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
<<<<<<< HEAD
 * @author 佳佳该死了
=======
 * @author 该死了
>>>>>>> origin/dev
 * @create 2022-08-25 19:20
 * 两轮车订单详情(order_detail )
 */
@RestController
@RequestMapping("OrderDetailController")
public class OrderDetailController {
    @Autowired
    private OrderDetailService orderDetailService;
   //两轮车账单条件查询
    @GetMapping("query")
    public Result query(OrderDetailVo orderDetailVo){
        return orderDetailService.query(orderDetailVo);
    }
    //账单新增
    @PostMapping("add")
    public Result add(@RequestBody OrderDetailEntity orderDetailEntity){
        return orderDetailService.add(orderDetailEntity);
    }
}
